#ifndef SERVERDIALOG_H
#define SERVERDIALOG_H

#include <QDialog>

namespace Ui {
class ServerDialog;
}

class ServerDialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit ServerDialog(QWidget *parent = 0);
    ~ServerDialog();

    bool isFirstClient() const;
    void setAsFirstClient(bool client);
    
private slots:
    void on_buttonBox_accepted();

private:
    Ui::ServerDialog *ui;
    bool is_first_client;

signals:
    void serverConfig(qint16 port, QString name, int max_player_num);
};

#endif // SERVERDIALOG_H
